clear all
clc
clf
set(gcf,'Position',[100 100 460 400]);
set(gca,'Position',[.16 .12 .80 .74]);
figure_FontSize=8;
set(get(gca,'XLabel'),'FontSize',figure_FontSize,'Vertical','top');
set(get(gca,'YLabel'),'FontSize',figure_FontSize,'Vertical','middle');
set(findobj('FontSize',10),'FontSize',figure_FontSize);
set(findobj(get(gca,'Children'),'LineWidth',0.5),'LineWidth',2);
y_all=[1.1084778178317527, 1.4744758328683958, 2.2615577329153926, 1.8351094935133023, 1.8304313869103368, 1.7145821236142473, 1.8041430803897813, 1.89658120388122;
    0.15442294736172882, 0.22647161795854853, 0.4934002295261884, 0.5265493180947334, 0.5529681394247892, 0.4708303095278806, 0.49176467591189443, 0.4517133479486546;
    1.2273040623892375, 1.5698735056850543, 1.6791675314928627, 1.7722652688256506, 1.5884162250447402, 1.5713885397335738, 1.5359387731011749, 1.4599670864631784;
%    1.2273040623892377, 1.9992618448929278, 3.6346806828647957, 4.314501370919032, 4.865459217358002, 5.561456692407762, 7.355071000665731, 9.047947999539193;
    1.2273040623892377, 2.0004417900199924, 3.6352949078410743, 4.31946563328823, 4.870034291972719, 5.561556410158849, 7.355170718416818, 9.047947999539193
    ];
b = bar(y_all','FaceColor','flat');
b(1).FaceColor = [0 0.4470 0.7410];
b(2).FaceColor = [0.8500 0.3250 0.0980];
b(3).FaceColor = [0.9290 0.6940 0.1250];
b(4).FaceColor = [0.4660 0.6740 0.1880];
%b(5).FaceColor = [0.6350 0.0780 0.1840];

axis([0,9,0,10]);

set(gca, 'XTickLabel', {'1', '3', '5', '9', '15', '30', '50', '100'})
set(gca,'YTick',[0:2:10]) %y轴范围0-700，间隔100
xlabel('# of Workers')
ylabel('System Utility')
legend('NLF','MPLF','PCS','MUTA')